package information;

import information.details.ContactDetails;
import quary.QuaryBridge;

public class BorrowedInformation extends AbstractInformation {
	
	private static final long serialVersionUID = 2846981516176345405L;
	private ContactDetails contactDetails = new ContactDetails(800);
	private QuaryBridge quaryBridge;

	public BorrowedInformation(QuaryBridge quaryBridge) {
		super();
		
		this.quaryBridge = quaryBridge;
		
		this.add(contactDetails);
	}

	
	@Override
	public void populate(int ownerID, int b) {
		contactDetails.populateDetails(quaryBridge.getPersonData(ownerID));
	}

	@Override
	public void clear() {
		contactDetails.clear();
	}
	
	

}
